package it.vidoc.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.ibatis.session.SqlSessionFactory;

public class TestServlet extends HttpServlet {
	SqlSessionFactory sqlSessionFactory = null;
	
	public SqlSessionFactory getSf() {
		return sqlSessionFactory;
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		sqlSessionFactory = (SqlSessionFactory)getServletContext().getAttribute("sqlSessionFactory");
	}

	public TestServlet() {
	}

}
